package com.example.demo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * OrderItemRequest
 *
 * @author liujin
 * @date 2020/12/18 14:10
 */
@ApiModel
@Data
public class OrderItemRequest implements Serializable {

    @ApiModelProperty(value = "商品ID", required = true)
    @NotNull
    private Long goodsId;

    @ApiModelProperty(value = "商品数量", required = true)
    @Min(1)
    private int quantity;
}
